package com.alphacsp.theedge2012.ui.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.TextView;
import com.alphacsp.theedge2012.R;

/**
 * Created by IntelliJ IDEA.
 * User: Gilad
 * Date: 14/11/10
 * Time: 23:16
 */
public class AboutActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_activity);
        final TextView registerTextView = (TextView) findViewById(R.id.register);
        final String text = "<a href='http://www.javaedge.com/jedge/register.jsp'>Register Now</a>";
        registerTextView.setMovementMethod(LinkMovementMethod.getInstance());
        registerTextView.setText(Html.fromHtml(text));

    }

    public void onHomeClick(View view) {
        final Intent intent = new Intent(getApplicationContext(), HomeActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
    }

    @SuppressWarnings({"UnusedDeclaration"})
    public void onSearchClick(View v) {
        onSearchRequested();
    }

}